package com.dyzx.hbb.modules.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName car_mark
 */
@TableName(value ="car_mark")
@Data
@Schema(description = "汽车品牌信息")
public class CarMark {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "编号", example = "1")
    private Long id;

    /**
     * 名称
     */
    @Schema(description = "品牌名称", example = "奔驰")
    private String name;

    /**
     * 状态 字典信息：sys_global_status
     */
    @Schema(description = "状态，字典信息：sys_global_status", example = "1")
    private Integer status;

    /**
     * 创建日期（毫秒级时间戳）
     */
    @Schema(description = "创建日期（毫秒级时间戳）", example = "1625097600000")
    private Long createDate;

    /**
     * 更新日期（毫秒级时间戳）
     */
    @Schema(description = "更新日期（毫秒级时间戳）", example = "1625097600000")
    private Long updateDate;

    /**
     * 删除标志
     */
    @Schema(description = "删除标志", example = "0")
    private Integer deleted;

    /**
     * 操作用户编号
     */
    @Schema(description = "操作用户编号", example = "1001")
    private Long operatorId;

    /**
     * 企业编号
     */
    @Schema(description = "企业编号", example = "100")
    private Long organId;

    /**
     * LOGO
     */
    @Schema(description = "品牌LOGO图片地址", example = "http://example.com/logo.png")
    private String logo;

    /**
     * 
     */
    @Schema(description = "品牌首字母", example = "B")
    private String firstLetter;

    /**
     * 
     */
    @Schema(description = "品牌所属国家", example = "德国")
    private String country;

    /**
     * 
     */
    @Schema(description = "查找次数", example = "100")
    private Integer findCount;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarMark other = (CarMark) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getOrganId() == null ? other.getOrganId() == null : this.getOrganId().equals(other.getOrganId()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getFirstLetter() == null ? other.getFirstLetter() == null : this.getFirstLetter().equals(other.getFirstLetter()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getFindCount() == null ? other.getFindCount() == null : this.getFindCount().equals(other.getFindCount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getOrganId() == null) ? 0 : getOrganId().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getFirstLetter() == null) ? 0 : getFirstLetter().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getFindCount() == null) ? 0 : getFindCount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", deleted=").append(deleted);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", organId=").append(organId);
        sb.append(", logo=").append(logo);
        sb.append(", firstLetter=").append(firstLetter);
        sb.append(", country=").append(country);
        sb.append(", findCount=").append(findCount);
        sb.append("]");
        return sb.toString();
    }
}